'use strict';
module.exports = app => {
    const { INTEGER,STRING } = app.Sequelize;
    const DailyLottery = app.model.define(
      'DailyLottery',
          {
              id: {type: INTEGER, primaryKey: true, autoIncrement: true},
                date: STRING,
                count: INTEGER,
                total: INTEGER,
          },
          {
              tableName: 'daily_lottery',
              timestamps: true, // 启用时间戳(createdAt, updatedAt)
          }
    );
    return DailyLottery;
};
